package com.ciquan.server.service.impl;

import com.ciquan.server.bean.WorksRecommend;
import com.ciquan.server.dao.WorksRecommendMapper;
import com.ciquan.server.service.WorksRecommendService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * Created by kakalee on 15/3/27.
 */
@Service
public class WorksRecommendServiceImpl implements WorksRecommendService {

    @Resource
    private WorksRecommendMapper worksRecommendMapper;

    @Override
    public int insert(WorksRecommend worksRecommend) {
        return worksRecommendMapper.insert(worksRecommend);
    }

    @Override
    public List<WorksRecommend> selectList() {
        return worksRecommendMapper.selectList();
    }

    @Override
    public int update(WorksRecommend worksRecommend) {
        return worksRecommendMapper.update(worksRecommend);
    }
}
